const webpack = require('webpack')
module.exports = {
  configureWebpack: {
    plugins: [
      new webpack.ProvidePlugin({
        $: "jquery",
        jQuery: "jquery",
        "windows.jQuery": "jquery"
      })
    ]
  },
  //关闭eslint
  lintOnSave: false,
  // 代理跨域
  devServer: {
    proxy: {
      "/webhooks": {
        target: "http://localhost:5000",
        // 允许跨域
        changeOrigin: true,
        ws: true,
        pathRewrite: {
          '^/webhooks': '' // 以'/api'开头的url会进行接口转发
        }
      },
    },
  },
}
